package com.xkdx.caipiao.presistence.lottery;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class LotterAction extends AbsAction {
	String userID, loginToken, lotteryID, issueID, orderTimes, playMethod,
			lotteryNum;

	public LotterAction(String userID, String loginToken, String lotteryID,
			String issueID, String orderTimes, String playMethod,
			String lotteryNum) {
		this.userID=userID;
		this.loginToken=loginToken;
		this.lotteryID=lotteryID;
		this.issueID=issueID;
		this.orderTimes=orderTimes;
		this.playMethod=playMethod;
		this.lotteryNum=lotteryNum;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("userID", userID);
		map.put("loginToken", loginToken);
		map.put("lotteryID", lotteryID);
		map.put("issueID", issueID);
		map.put("orderTimes", orderTimes);
		map.put("playMethod", playMethod);
		map.put("lotteryNum", lotteryNum);

		String json = constructJson(map);

		Parameter parameter = new Parameter("Trade", "Lotteryrequest", json);
		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}

}
